import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN'
import { VerifyProvider } from './contexts/VerifyContext'
import './styles/global.scss'
import App from './App.tsx'

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <BrowserRouter>
      <ConfigProvider locale={zhCN}>
        <VerifyProvider>
          <App />
        </VerifyProvider>
      </ConfigProvider>
    </BrowserRouter>
  </StrictMode>,
)
